import random


def generate_random_hex():
    return "".join(hex(int(65536 * (1 + random.random())))[3:] for _ in range(4))


rd = generate_random_hex()
print(rd)
